package com.aggron.flow;

import com.bstek.uflo.env.Context;
import com.bstek.uflo.model.ProcessInstance;
import com.bstek.uflo.process.handler.NodeEventHandler;
import com.bstek.uflo.process.node.Node;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/6/17.
 */
@Slf4j
@Service
public class LeaveFlow implements NodeEventHandler {
    @Override
    public void enter(Node node, ProcessInstance processInstance, Context context) {
        log.info("enter");
    }

    @Override
    public void leave(Node node, ProcessInstance processInstance, Context context) {
        log.info("leave");
    }
}
